<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--

    Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Distribution License v. 1.0, which is available at
    http://www.eclipse.org/org/documents/edl-v10.php.

    SPDX-License-Identifier: BSD-3-Clause

-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:util="http://java.sun.com/jsf/composite/util">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewCustomerOrderTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewCustomerOrderLabel_id}"/>
                    <h:outputText value="#{customerOrderController.selected.id}" title="#{bundle.ViewCustomerOrderTitle_id}"/>
                    <h:outputText value="#{bundle.ViewCustomerOrderLabel_amount}"/>
                    <h:outputText value="#{customerOrderController.selected.amount}" title="#{bundle.ViewCustomerOrderTitle_amount}"/>
                    <h:outputText value="#{bundle.ViewCustomerOrderLabel_dateCreated}"/>
                    <h:outputText value="#{customerOrderController.selected.dateCreated}" title="#{bundle.ViewCustomerOrderTitle_dateCreated}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCustomerOrderLabel_orderStatus}"/>
                    <h:outputText value="#{customerOrderController.selected.orderStatus.status}" title="#{bundle.ViewCustomerOrderTitle_orderStatus}"/>
                    <h:outputText value="#{bundle.ViewCustomerOrderLabel_customer}"/>
                    <h:outputText value="#{customerOrderController.selected.customer.firstname}" title="#{bundle.ViewCustomerOrderTitle_customer}"/>
                </h:panelGrid>
                
                 <ul class="commandButtons">
                     <li><h:commandLink action="#{customerOrderController.destroyAndView}" value="#{bundle.ViewCustomerOrderDestroyLink}"/></li>
                     <li><h:commandLink action="#{customerOrderController.prepareList}" value="#{bundle.ViewCustomerOrderShowAllLink}"/></li>
                 </ul>
                
            </h:form>
        </ui:define>
    </ui:composition>

</html>
